<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>clear</title>
  </head>
  <body bgcolor="#FFFFFF">
    <center>Scilab Function</center>
    <div align="right">Last update : April 1993</div>
    <p>
      <b>clear</b> -  kills variables</p>
    <h3>
      <font color="blue">Calling Sequence</font>
    </h3>
    <dl>
      <dd>
        <tt>clear a</tt>
      </dd>
    </dl>
    <h3>
      <font color="blue">Description</font>
    </h3>
    <p>
    This command kills variables which are not protected.
    It removes the named variables from the environment.
    By itself <tt>
        <b>clear</b>
      </tt> kills all the variables except the variables
    protected by <tt>
        <b>predef</b>
      </tt>. Thus the two commands <tt>
        <b>predef(0)</b>
      </tt> and <tt>
        <b>clear</b>
      </tt>
    remove all the variables.</p>
    <p>
    Normally, protected variables are standard libraries and variables with
    the percent prefix.</p>
    <p>
    Note the particular syntax <tt>
        <b>clear a</b>
      </tt> and not <tt>
        <b>clear(a)</b>
      </tt>. Note also
    that <tt>
        <b>a=[]</b>
      </tt> does not kill <tt>
        <b>a</b>
      </tt> but sets <tt>
        <b>a</b>
      </tt> to an empty matrix.</p>
    <h3>
      <font color="blue">See Also</font>
    </h3>
    <p>
      <a href="predef.htm">
        <tt>
          <b>predef</b>
        </tt>
      </a>,&nbsp;&nbsp;<a href="who.htm">
        <tt>
          <b>who</b>
        </tt>
      </a>,&nbsp;&nbsp;</p>
  </body>
</html>
